﻿using System;

namespace Demo6
{
    class Program
    {
        static void Main(string[] args)
        {
            //2、生成0 - 5之间的随机小数，保留两位小数。

            Random ran = new Random();
            for (int i = 0; i < 10; i++)
            {

                int num1 = ran.Next(5);
            //Console.WriteLine(num1);

                 double num2 = ran.NextDouble();
            //Console.WriteLine(Math.Round(num2,2));

                 double num3;

                num3 = num1 + num2;
                Console.WriteLine(Math.Round(num3,2));
            }
           
        }
    }
}
